package com.scada.hessian.client.impl;

import java.util.Map;

import com.scada.inf.UserVisitor;
import com.scada.model.bean.User;
import com.scada.model.bean.vo.UserRoleVO;
import com.scada.model.bean.vo.UserVO;
import com.scada.model.result.PageInfo;
import com.scada.model.result.ResponseBean;
import com.scada.wechat.hessian.client.BaseClient;
import com.scada.wechat.hessian.client.annotation.HessianNamespace;

@HessianNamespace("userVisitorService")
public class UserVisitorClient extends BaseClient<UserVisitor> implements UserVisitor{

	public ResponseBean insert(User user, String roleIds) {
		
		return getVistor().insert(user, roleIds);
	}

	public ResponseBean update(User user, String roleIds) {
		
		return getVistor().update(user, roleIds);
	}

	public User findUserByLoginName(Map<String, Object> map) {
		
		return getVistor().findUserByLoginName(map);
	}

	public UserRoleVO findUserDetail(int id) {
		
		return getVistor().findUserDetail(id);
	}

	public PageInfo<UserVO> findDataList(PageInfo<UserVO> pageInfo) {
		
		return getVistor().findDataList(pageInfo);
	}

	public ResponseBean updateState(String uIds, int state, String method) {
		
		return getVistor().updateState(uIds, state, method);
	}

	public ResponseBean updatePassword(String newPad, Integer id) {
		
		return getVistor().updatePassword(newPad, id);
	}

	public ResponseBean updateLoginDate(User user) {
		
		return getVistor().updateLoginDate(user);
	}

	@Override
	public ResponseBean usernameExist(String loginName, String userId) {
		
		return getVistor().usernameExist(loginName, userId);
	}

}
